How to Install Linux Kernel 6.1 on Ubuntu 22.04 or 20.04

您所在的位置:网站首页 ubuntu advanced features How to Install Linux Kernel 6.1 on Ubuntu 22.04 or 20.04

How to Install Linux Kernel 6.1 on Ubuntu 22.04 or 20.04

2023-01-27 00:24| 来源: 网络整理| 查看: 265

The Linux Kernel 6.1 can be installed on Ubuntu 22.04 or 20.04 systems, which brings new features and improvements, such as:

Initial support for the Rust programming language Btrfs file system performance improvements Various Intel Arc graphics improvements More work for AMD RDNA3 GPUs Intel Meteor Lake Thunderbolt support Support for more sound systems Support for Xbox One Elite Controller paddles Better support of Nintendo clone controllers Initial DualSense Edge controller support Additionally, there are many more features and improvements included in this release, making it a significant update for Linux users.

This guide will walk you through installing Linux Kernel 6.1 on your Ubuntu 22.04 or 20.04 desktop or server using the TuxInvader Launchpad PPA. The PPA contains the latest generic kernels, and the guide will show you how to use the command line terminal to import the PPA and install the latest Linux Kernel.

Step 1: Update Ubuntu

Before installing Linux Kernel 6.1, it is important to ensure that your system is up to date. This means updating all existing packages on your system, as it can prevent conflicts from arising during the installation or upgrading.

sudo apt update

Before moving forward, you can preview the updates that will be made to your system by using a command to list the available upgrades.

apt list --upgradable

If any updates are available, use the provided command to initiate the upgrade process.

sudo apt upgrade Step 2: Install Required Dependencies

The following packages are required for installation. Please run the command below to install them.

sudo apt install ca-certificates apt-transport-https software-properties-common lsb-release -y Step 3: Import TuxInvader PPA

The recommended method for installing the Linux Kernel 6.1 on Ubuntu is to use the TuxInvader Launchpad PPA. This PPA is regularly updated with the latest versions for Ubuntu Long-term Support releases, such as Jammy Jellyfish and Focal Fossa. However, it’s important to note that these kernels will eventually be replaced by newer versions from the PPA as the mainline kernels have a shorter end of life than LTS kernels. Once you add the PPA, you will receive notifications of minor updates and new releases.

If you are new to importing GPG keys from Ubuntu’s KeyServer, you may encounter an issue where your command line terminal does not create the necessary directories. However, this can be easily fixed by using a command to create these directories, which will ensure smooth operation when launching PPAs on Launchpad.

sudo gpg --list-keys

Example output:

gpg: directory '/root/.gnupg' created gpg: keybox '/root/.gnupg/pubring.kbx' created gpg: /root/.gnupg/trustdb.gpg: trustdb created

This step is not mandatory, but if you experience any issues, you can execute the command and retry the process.

See alsoHow to Install VSCodium on Linux Mint 21 or 20

You can import the necessary GPG key using the following command.

sudo gpg --no-default-keyring --keyring /usr/share/keyrings/tuxinvader.gpg --keyserver keyserver.ubuntu.com --recv-keys 3844A6C1C6FD1056

Example output:

gpg: keybox '/usr/share/keyrings/tuxinvader.gpg' created gpg: key 3844A6C1C6FD1056: public key "Launchpad PPA for tuxinvader" imported gpg: Total number processed: 1 gpg: imported: 1

The next step is to import the repository for your Ubuntu system by executing the following command. Ensure you import the correct command for your Ubuntu distribution version.

Option 1: Import Linux Kernel 6.1 Repository for Ubuntu 22.04 LTS:

echo 'deb [signed-by=/usr/share/keyrings/tuxinvader.gpg] https://ppa.launchpadcontent.net/tuxinvader/jammy-mainline/ubuntu jammy main' | sudo tee -a /etc/apt/sources.list.d/tuxinvader.list echo 'deb-src [signed-by=/usr/share/keyrings/tuxinvader.gpg] https://ppa.launchpadcontent.net/tuxinvader/jammy-mainline/ubuntu jammy main' | sudo tee -a /etc/apt/sources.list.d/tuxinvader.list

Option 2: Import Linux Kernel 6.1 Repository for Ubuntu 20.04 LTS:

echo 'deb [signed-by=/usr/share/keyrings/tuxinvader.gpg] https://ppa.launchpadcontent.net/tuxinvader/lts-mainline/ubuntu focal main' | sudo tee -a /etc/apt/sources.list.d/tuxinvader.list echo 'deb-src [signed-by=/usr/share/keyrings/tuxinvader.gpg] https://ppa.launchpadcontent.net/tuxinvader/lts-mainline/ubuntu focal main' | sudo tee -a /etc/apt/sources.list.d/tuxinvader.list

You can now perform a quick update to cache the new source with the imported repository.

sudo apt update

After importing the PPA and running an update, you may notice some packages that need to be updated. You can now proceed with running an upgrade.

sudo apt upgrade

The next step is to install the Linux Kernel 6.1 generic drivers by running the following command.

sudo apt-get install linux-generic-6.01

Please note that it looks like the command is for 6.0 but its actually for 6.1.

Once the installation is complete, you will need to reboot your system for the new kernel to take effect.

reboot

After logging back into your system, you can use the following command to check if the new kernel version is in use.

uname -r

Example output:

6.1.7-060107-generic Additional Commands & Tips How to Restore Default Kernel

If users find that the new kernel has bugs that affect their hardware, such as loss of sound, they can use the following steps to restore the default kernel. If an alternative kernel was installed, replace the “default kernel” section with the desired kernel to install.

First, remove the TuxInvader LaunchPAD PPA using the following command.

sudo rm /etc/apt/sources.list.d/tuxinvader.list

Now, execute an APT update to ensure that the repository has been removed.

sudo apt update

Begin the removal and restoration; use the following command.

sudo apt autoremove linux-generic-6.* linux-headers-6.* linux-image-unsigned-6.* linux-modules-6.* --purge

Before we reboot, make sure the default generic is installed, do not fuss too much as you can install alternative versions later on as we are just trying to get your system back to working order.

For Ubuntu 22.04 users, use the following command:

sudo apt install --install-recommends linux-generic-hwe-22.04

For Ubuntu 20.04 users, use the following command:

sudo apt install --install-recommends linux-generic-hwe-20.04

You may see an output message indicating that the Linux Kernel is already installed, which is normal. The commands ensure that a Linux Kernel is on your system, avoiding potential rebooting issues.

See alsoLinux du Command: Common Examples

Now, reboot your Ubuntu system using the following command or, if you prefer, use the GUI restart option for desktop users.

reboot

Now, confirm that the default generic kernel is installed.

sudo uname -r

You should now have the standard, generic Linux Kernel that was present before upgrading your Linux Kernel. You could choose to keep this version, explore alternative Linux Kernels such as Liquorix and XanMod or even build your own Linux Kernel if the TuxInvader PPA was not helpful.

Conclusion

Installing the latest Linux Kernel 6.1 on an Ubuntu system can bring many benefits, such as improved performance, security, and new features. The TuxInvader Launchpad PPA makes installing the kernel on Ubuntu 22.04 or 20.04 desktops or servers easy. By following the steps outlined in this guide, you can import the PPA and install Linux Kernel 6.1 with the command line terminal. It is important to note that updating your kernel can cause compatibility issues with some software, so it’s always recommended to back up your data before proceeding with any update. If you experience any issues after updating, you can always boot into an older kernel version. Overall, installing the latest Linux Kernel 6.1 on the Ubuntu system is a relatively simple process that can bring many benefits to your system.

TwitterFacebookHacker News2RedditTelegramWhatsAppTumblrPocketShare2SHARES


【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3